package com.csvw.skr.newTask.entity.inspection;

import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Administrator on 2016/12/9.
 */
@Entity
@Table(name = "csvw_skr_task_inspection_assignment_questionnaire")
public class AssignmentQuestionnaire {

    /**
     * 点检计划任务检查项完成情况的ID， md5(inspectionId_assignmentId_question)
     */
    @Id
    @Column(name = "pk_id", length = 50)
    private String id;

    /**
     * 点检计划任务的ID
     */
    @Column(length = 30)
    private String assignmentId;

    /**
     * 点检计划的ID
     */
    @Column(length = 50)
    private String inspectionId;

    /**
     * 题目的Id
     */
    @Column(length = 50)
    private String questionId;

    /**
     * 题目的结果
     */
    @Type(type="text")
    private String result;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAssignmentId() {
        return assignmentId;
    }

    public void setAssignmentId(String assignmentId) {
        this.assignmentId = assignmentId;
    }

    public String getInspectionId() {
        return inspectionId;
    }

    public void setInspectionId(String inspectionId) {
        this.inspectionId = inspectionId;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

}
